package com.interest.controller;

import com.interest.controller.builder.DefaultModelAndViewBuilder;
import com.interest.modules.zen.service.ZenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by yangfeng on 16-11-9.
 */
@Controller
@RequestMapping("/zen")
public class ZenController {

    @Autowired
    private ZenService zenService;

    @RequestMapping("/get")
    public ModelAndView getList() {
        return new DefaultModelAndViewBuilder<>("zen/get", zenService.getZen()).build();
    }
}
